package com.xuanwei.core.enums;

/**
 * 响应码
 */
public enum ResponseCode {

    SUCCESS(2000, "访问成功"),

    FAIL(1000,"访问失败"),

    AUTHERROR(1050,"无权限"),

    LOGINERROR(3000,"请登录"),

    PARAMERROR(1030,"参数异常"),
    
    NORESURCE(404,"找不到该资源"),

    STSTEMERROR(500,"系统异常");

    private Integer code;
    private String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }
}
